package cc.zstart.exception;

public class LogicException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private Integer code;
    private String msg;

    public LogicException() {
    }

    public LogicException(String msg) {
        super();
        this.msg = msg;
    }

    public LogicException(Integer code) {
        super();
        this.code = code;
    }

    public LogicException(String msg, Integer code) {
        super();
        this.msg = msg;
        this.code = code;
    }

    public LogicException(String msg, Throwable cause) {
        super(cause);
        this.msg = msg;
    }
    public LogicException(Integer code, Throwable cause) {
        super(cause);
        this.code = code;
    }

    public LogicException(String msg, Integer code, Throwable cause) {
        super(cause);
        this.msg = msg;
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
